provider "alicloud" {
  region = var.region
}

locals {
  # 定义重复使用的标签
  common_tags = {
    application = var.tags_application
    owner       = var.tags_owner
  }
}

# 创建快照策略
resource "alicloud_snapshot_policy" "snapshot_policy" {
  name                  = var.easp_name
  repeat_weekdays       = var.easp_repeat_weekdays
  retention_days        = var.easp_retention_days
  time_points           = var.easp_time_points
  tags                  = local.common_tags
}
